package com.freewater.springboot.demo.ioc.genericdi;

import org.springframework.stereotype.Component;

@Component
public class Cat2 implements Cat{
    @Override
    public void eat() {
        System.out.println("cat2 eat");
    }

    @Override
    public void run() {
        System.out.println("cat2 run");
    }

    @Override
    public void miao() {
        System.out.println("cat2 miao");
    }
}
